@charset "UTF-8";

// 快速设置position
// 来源: https://github.com/thoughtbot/bourbon/blob/master/core/bourbon/library/_position.scss
@mixin position($position, $box-edge-values) {
    $box-edge-values: _unpack-shorthand($box-edge-values);

    $offsets: (
            top: nth($box-edge-values, 1),
            right: nth($box-edge-values, 2),
            bottom: nth($box-edge-values, 3),
            left: nth($box-edge-values, 4),
    );

    position: $position;

    @each $offset, $value in $offsets {
        @if _is-length($value) {
            #{$offset}: $value;
        }
    }
}